<?php

$path = dirname(dirname(__FILE__));
require($path . '/config/database.php');
require($path . '/function/sqlcon.php');

$rst = new sqlcon();
$rst->setSql("update user set dutystatus = 0, dutytime = '' where dutystatus = 2 and timestampdiff(minute, dutytime, now()) > 30");
$rst->execute();